import Router from "koa-router";
import roleController from "./roleController.js";
const router = Router({
  prefix: '/role'
})

router.post('/add', roleController.addRole);

router.post('/del', roleController.delRole);
router.post('/get', roleController.getRole);
//原始查询(使用sql)
router.post('/getRoleByOrg', roleController.getRoleByOrg);
//查询某个角色下的用户信息;
router.post('/getUserByRole', roleController.getUserByRole);


export default router;